class_name EquipmentFrogHat
extends EquipmentBase


func add_poison_debuff(source: Node2D):
	var poison_hit_rate = item_data.item_config.poison_hit_rate 
	var is_hit = randf() < poison_hit_rate
	if is_hit and not source.get_buff_by_name("buff_poison"):
		var buff_inst = source.add_buff("buff_poison", holder)
		
		buff_inst.duration = item_data.item_config.poison_debuff_duration
		buff_inst.damage_per_second = item_data.item_config.poison_damage_per_second
		buff_inst.start_buff()
